<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
	<script>
	for(var i=1;i<9;i++){
		console.log(i)
	}
	console.log("循环外：：："+i)
	
	function sayHi(){
		for(var a=1;a<9;a++){
			console.log(a)
		}
	}
	console.log(a)
	
	</script>
</html>
